package cn.cdeden.system.domain.bo;

import cn.cdeden.common.core.validate.AddGroup;
import cn.cdeden.common.core.validate.EditGroup;
import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import cn.cdeden.system.domain.SysLargeModel;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysLargeModel.class, reverseConvertGenerate = false)
public class SysLargeModelBo extends BaseEntity {
    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configName;

    /**
     * 配置键名
     */
    @NotBlank(message = "配置键名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configKey;

    /**
     * 配置键值
     */
    @NotBlank(message = "配置键值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configValue;

    /**
     * 登录类型
     */
    @NotBlank(message = "模型类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String largeModelType;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 更新时间
     */
    @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updatedAt;

    /**
     * 默认
     */
    private String defaultOptions;
}
